import request from "@/utils/request";



export function addExpert(data) {

  return request({
    url: '/website/specialist/addSettledSpecialist',
    method: 'post',
    data: data
  })
}

export function getSpecialist(query) {
  return request({
    url: '/website/specialist/queryScienceExpertInfoList',
    method: 'get',
    params: query
  })
}


// 获取相关推荐接口
export function getSpeciaRelist() {
  return request({
    url: '/website/specialist/api/list',
    method: 'get',
    params: {
      pageSize: 5,
      pageNum: 1,
      isRecommend: 1,
    }
  })
}

export function getSpeciaDetail(query) {
  return request({
    url: '/website/specialist/getScienceExpertInfoById',
    method: 'get',
    params: query
  })
}